package com.xiguthings.waka.exception;

public class HttpSendErrorException extends RuntimeException {

    public static void throwThis(int code,String msg){
        HttpSendErrorException ex = new HttpSendErrorException(msg);
        ex.code = code;
        throw ex;
    }

    private int code;

    public HttpSendErrorException(){
        super();
    }
    public HttpSendErrorException(String msg){
        super(msg);
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
